package nc.tf.rest2024.log;

import nc.vo.pub.SuperVO;

public class TfOperateLogVO extends SuperVO {

	private static final long serialVersionUID = 9154645397715809755L;

	private String operate_log_id;
	private String task_id;
	private String bill_type;
	private String operate_type;
	private String success_flag;
	private String other_system;
	private String req_data;
	private String res_data;
	private String ts;
	private String dr;
	private String mess;

	public TfOperateLogVO() {
		this.setSuccess_flag("Y");
		this.setDr("0");
	}

	public TfOperateLogVO(String success_flag, String task_id, String bill_type, String operate_type, String other_system, String req_data, String res_data, String mess) {
		this.success_flag = success_flag;
		this.task_id = task_id;
		this.bill_type = bill_type;
		this.operate_type = operate_type;
		this.other_system = other_system;
		this.req_data = req_data;
		this.res_data = res_data;
		this.mess = mess;
	}

	public static TfOperateLogVO success(String task_id, String bill_type, String operate_type, String other_system, String send_data, String res_data, String mess) {
		return new TfOperateLogVO("Y", task_id, bill_type, operate_type, other_system, send_data, res_data, mess);
	}

	public static TfOperateLogVO failure(String task_id, String bill_type, String operate_type, String other_system, String send_data, String res_data, String mess) {
		return new TfOperateLogVO("N", task_id, bill_type, operate_type, other_system, send_data, res_data, mess);
	}

	public String getPKFieldName() {
		return "operate_log_id";
	}

	public String getTableName() {
		return "tt_operate_log";
	}

	public String getOperate_log_id() {
		return operate_log_id;
	}

	public void setOperate_log_id(String operate_log_id) {
		this.operate_log_id = operate_log_id;
	}

	public String getTask_id() {
		return task_id;
	}

	public void setTask_id(String task_id) {
		this.task_id = task_id;
	}

	public String getBill_type() {
		return bill_type;
	}

	public void setBill_type(String bill_type) {
		this.bill_type = bill_type;
	}

	public String getOperate_type() {
		return operate_type;
	}

	public void setOperate_type(String operate_type) {
		this.operate_type = operate_type;
	}

	public String getSuccess_flag() {
		return success_flag;
	}

	public void setSuccess_flag(String success_flag) {
		this.success_flag = success_flag;
	}

	public String getOther_system() {
		return other_system;
	}

	public void setOther_system(String other_system) {
		this.other_system = other_system;
	}

	public String getReq_data() {
		return req_data;
	}

	public void setReq_data(String req_data) {
		this.req_data = req_data;
	}

	public String getRes_data() {
		return res_data;
	}

	public void setRes_data(String res_data) {
		this.res_data = res_data;
	}

	public String getTs() {
		return ts;
	}

	public void setTs(String ts) {
		this.ts = ts;
	}

	public String getMess() {
		return mess;
	}

	public void setMess(String mess) {
		this.mess = mess;
	}

	public String getDr() {
		return dr;
	}

	public void setDr(String dr) {
		this.dr = dr;
	}

}
